import request from '@/utils/request'

// 查询商品分类品牌关联列表
export function listCategoryBrand(query) {
  return request({
    url: '/product/categoryBrand/list',
    method: 'get',
    params: query
  })
}

// 查询商品分类品牌关联详细
export function getCategoryBrand(id) {
  return request({
    url: '/product/categoryBrand/' + id,
    method: 'get'
  })
}

// 新增商品分类品牌关联
export function addCategoryBrand(data) {
  return request({
    url: '/product/categoryBrand',
    method: 'post',
    data: data
  })
}

// 修改商品分类品牌关联
export function updateCategoryBrand(data) {
  return request({
    url: '/product/categoryBrand',
    method: 'put',
    data: data
  })
}

// 删除商品分类品牌关联
export function delCategoryBrand(id) {
  return request({
    url: '/product/categoryBrand/' + id,
    method: 'delete'
  })
}
